<template>
	<view class="main">
		<u-navbar :is-back="true" title="退单管理" :background="background" :border-bottom="false"  title-color="#000000"
			back-icon-color="#000">
			<view class="navright" slot="right">
				<image src="../../../static/images/sx.png" mode=""></image>
			</view>
		</u-navbar>

		<view class="all">
			<view class="tabs">
				<u-tabs :list="list" bg-color="#fff" :is-scroll="true" :current="current" @change="change"
					active-color="#FF0000">
				</u-tabs>
			</view>


			<view class="orderinfo" v-if="current==0">
				<view class="back" v-for="item in 2">
					<view class="time">
						<text>待审核</text>
						<text>2022-05-23 10:32:54</text>
					</view>
					<view class="ordertop">
						<view class="ordernumber">
							<view class="order_l">
								<text class="title">订 单 号：</text>
								<text class="id">SH366165322637450586235</text>
							</view>
							<view class="order_l">
								<text class="title">主订单号：</text>
								<text class="id">PT721165322637450450714</text>
							</view>
						</view>

					</view>
					<view class="orderbot">
						<view class="order_l">
							<text class="title">收 货 人：</text>
							<text class="id">阿萨德</text>
						</view>
						<view class="order_l">
							<text class="title">实际支付：</text>
							<text class="id">10500.00</text>
						</view>

						<view class="state">
							<view class="state_l">
								<view class="order_l">
									<text class="title">支付方式：</text>
									<text class="id">支付宝</text>
								</view>
								<view class="order_l">
									<text class="title">订单状态：</text>
									<text class="id">已取消</text>
								</view>
							</view>

						</view>
					</view>
					<view class="botbut">
						<view class="noback">
							拒绝退款
						</view>
						<view class="noback">
							立即退款
						</view>
						<view class="orderremake">
							订单备注
						</view>
						<view class="orderdetails">
							订单详情
						</view>
					</view>
				</view>
			</view>



		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				background: {
					backgroundColor: '#fff',
				},
				list: [{
						name: '全部(2)'
					}, {
						name: '待审核(2)'
					},
					{
						name: '审核未通过(0)'
					},
					{
						name: '退款中(2)'
					},
					{
						name: '已退款成(0)',
					}
				],
				current: 0,

			}
		},
		onLoad() {

		},
		onShow() {},
		methods: {
			change(index) {
				console.log(index);
				this.current = index;
				// this.list[0].name=`出售中(${2})`//用于循环
			}
		}
	}
</script>

<style lang="scss">
	page {
		font-family: PingFang SC;
		background-color: #f7f7f7;

		.main {
			width: 750rpx;

			.navright {
				padding-right: 30rpx;

				image {
					width: 36rpx;
					height: 36rpx;
				}
			}

			.all {
				.orderinfo {

					.back {
						padding-bottom: 28rpx;
						background-color: #fff;
						margin-top: 10rpx;

						.time {
							display: flex;
							justify-content: space-between;
							align-items: center;
							width: 750rpx;
							background: #666666;
							padding: 22rpx 38rpx 22rpx 23rpx;

							text {
								font-size: 26rpx;
								font-family: PingFang SC;
								font-weight: 400;
								color: #FFFFFF;
							}
						}

						.ordertop {
							display: flex;
							justify-content: space-between;
							padding: 0 30rpx 0 20rpx;

							.ordernumber {

								.order_l {
									padding-top: 28rpx;

									.title {
										font-size: 26rpx;
										font-family: PingFang SC;
										font-weight: 400;
										color: #000000;
									}

									.id {
										font-size: 26rpx;
										font-family: PingFang SC;
										font-weight: 400;
										color: #666666;
									}
								}
							}

							.order_r {
								padding-top: 28rpx;

								image {
									width: 32rpx;
									height: 34rpx;
								}
							}
						}

						.orderbot {
							padding-left: 20rpx;

							.order_l {
								padding-top: 28rpx;

								.title {
									font-size: 26rpx;
									font-family: PingFang SC;
									font-weight: 400;
									color: #000000;
								}

								.id {
									font-size: 26rpx;
									font-family: PingFang SC;
									font-weight: 400;
									color: #666666;
								}
							}

							.state {
								display: flex;
								justify-content: space-between;

								.state_l {
									.order_l {
										padding-top: 28rpx;

										.title {
											font-size: 26rpx;
											font-family: PingFang SC;
											font-weight: 400;
											color: #000000;
										}

										.id {
											font-size: 26rpx;
											font-family: PingFang SC;
											font-weight: 400;
											color: #666666;
										}
									}
								}

								.state_r {
									padding-top: 80rpx;
									display: flex;
									text-align: center;
									line-height: 48rpx;
									font-size: 24rpx;
									font-family: PingFang SC;
									font-weight: 400;
									color: #FFFFFF;


									.remark {
										width: 180rpx;
										height: 48rpx;
										background: #9A9A9A;
										border-radius: 24rpx;
									}

									.details {
										margin: 0 40rpx;
										width: 180rpx;
										height: 48rpx;
										background: #304156;
										border-radius: 24rpx;
									}
								}
							}
						}

						.botbut {
							display: flex;
							justify-content: space-around;
							align-items: center;
							font-size: 24rpx;
							font-family: PingFang SC;
							font-weight: 400;
							color: #FFFFFF;
							margin-top: 24rpx;
							line-height: 52rpx;
							text-align: center;

							.noback {
								width: 160rpx;
								text-align: center;

								height: 52rpx;
								background: #0F82FF;
								border-radius: 26rpx;
							}

							.orderremake {
								width: 160rpx;
								height: 52rpx;
								background: #808080;
								border-radius: 26rpx;
							}

							.orderdetails {
								width: 160rpx;
								height: 52rpx;
								background: #304156;
								border-radius: 26rpx;
							}
						}

					}

				}

			}
		}
	}
</style>
